package com.wwfish.cmsui.modules.common.client;

import com.nexustar.gwt.dashboard.client.AbstractPage;
import com.nexustar.gwt.dashboard.client.PageClient;
import com.nexustar.gwt.widgets.client.ui.window.Message;

/**
 * Created by IntelliJ IDEA.
 * User: Tom
 * Date: 2010-8-21
 * Time: 16:07:03
 * To change this template use File | Settings | File Templates.
 */
public abstract class CMSPageClient implements PageClient {
    public void success(AbstractPage page) {
        BaseCMSPage p = (BaseCMSPage) page;
        process(p);
    }

    abstract protected void process(BaseCMSPage page);

    public void failure() {
        Message.error("网络问题，请刷新页面加载脚本！");
    }
}
